﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExportMBuyDetailReport.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.MarketModel.Execl.ExportMBuyDetailReport" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:repeater id="rpMenu" runat="server">
        <HeaderTemplate>
        <table cellspacing="0" rules="all" border="1" style="border-collapse: collapse;">
        <thead>
            <tr  >
                <th width="120">
                    物料名称
                </th>                
                <th width="100">
                    入库数量
                </th> 
                <th width="100" >
                    购买金额
                </th>
                <th width="70" >
                    单价
                </th> 
                <th width="60" orderField="BuyDate" class="asc">
                    购买时间
                </th>       
                <th >
                    供应商
                </th>
            </tr>
        </thead>
        <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
				<td><%# Eval("ItemName")%></td>
				<td><%# Eval("BuyNum")%></td>
                <td><%# Convert.ToDecimal(Eval("BuyNum"))*Convert.ToDecimal(Eval("BuyPrice"))%></td>
				<td><%# Eval("BuyPrice")%></td>
                <td><%# Eval("BuyDate")%></td>
                <td><%# Eval("SupplierName")%></td>
			</tr>
        </ItemTemplate>
        <FooterTemplate>
               <tr>
                <td width="120" align="right"><b>合计:</b></td>
                <td  align="center" width="100"><b style="color:red;"><%=Convert.ToDecimal(SUMDT.Rows[0]["BuyNum"]).ToString("F2")%></b></td>
                <td width="100"><b style="color:red;"><%=Convert.ToDecimal(SUMDT.Rows[0]["totlemoney"]).ToString("F2")%></b></td>
                
                <td>&nbsp;</td>
            </tr>

            </tbody>
         </table>
        </FooterTemplate>
    </asp:repeater>
    </form>
</body>
</html>
